<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>欢迎登录</title>
    <style>
        body {
            margin: 0;
            padding: 0;
            background: #f7f9fb;
            font-family: 'Microsoft YaHei', Arial, sans-serif;
        }
        .container {
            display: flex;
            height: 100vh;
            align-items: center;
            justify-content: center;
        }
        .left {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .right {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .login-box {
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 2px 16px rgba(0,0,0,0.08);
            padding: 40px 32px 32px 32px;
            min-width: 340px;
        }
        .login-title {
            font-size: 28px;
            font-weight: bold;
            text-align: center;
            margin-bottom: 32px;
        }
        .form-group {
            margin-bottom: 20px;
        }
        .form-group label {
            display: block;
            margin-bottom: 6px;
            font-size: 15px;
            color: #333;
        }
        .form-group input, .form-group select {
            width: 100%;
            padding: 8px 10px;
            border: 1px solid #d9d9d9;
            border-radius: 4px;
            font-size: 15px;
            outline: none;
            box-sizing: border-box;
        }
        .form-group input:focus, .form-group select:focus {
            border-color: #409eff;
        }
        .login-btn {
            width: 100%;
            padding: 10px 0;
            background: #409eff;
            color: #fff;
            border: none;
            border-radius: 4px;
            font-size: 16px;
            cursor: pointer;
            margin-top: 10px;
        }
        .login-btn:hover {
            background: #1976d2;
        }
        .required {
            color: #f56c6c;
            margin-right: 2px;
        }
        @media (max-width: 900px) {
            .container { flex-direction: column; }
            .left, .right { flex: unset; width: 100%; }
        }
    </style>
</head>
<body>
<div class="container">
    <div class="left">
        <img src="image.png" alt="illustration" style="max-width: 90%; max-height: 500px;">
    </div>
    <div class="right">
        <div class="login-box">
            <div class="login-title">欢迎登录</div>
            <form id="loginForm" autocomplete="off">
                <div class="form-group">
                    <label><span class="required">*</span>用户账号：</label>
                    <input type="text" id="username" required autocomplete="off">
                </div>
                <div class="form-group">
                    <label><span class="required">*</span>用户密码：</label>
                    <input type="password" id="password" required autocomplete="off">
                </div>
                <button type="submit" class="login-btn">登 陆</button>
            </form>
        </div>
    </div>
</div>
<script>
    document.getElementById('loginForm').addEventListener('submit', function(e) {
        e.preventDefault();
        var username = document.getElementById('username').value.trim();
        var password = document.getElementById('password').value.trim();
        if(username === 'admin' && password === '123') {
            alert('验证成功！');
            window.location.href = 'http://47.116.207.219/homePage';
        } else {
            alert('账号或密码错误，请重新输入！');
            document.getElementById('username').value = '';
            document.getElementById('password').value = '';
        }
    });
</script>
</body>
</html>